// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'AIMC' 





while true
    wait 0 
    if Player.Defined(0)
    jf continue
    Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
    if 0AE2: 0@ = random_vehicle_near_point 1@ 2@ 3@ in_radius 40.0 find_next 1 pass_wrecked 0 //IF and SET  
    jf continue
    if not 0@ == -1                                                                                                       
    jf continue
    if 056E:   car 0@ defined 
    jf continue                                                                                                        
    if not car.Wrecked(0@)                                                                                                
    jf continue
    4@ = CAR.Health(0@)
    IF 4@ == 1000
    jf continue
    CAR.Health(0@) = 1500                                                                                    
    0A92: create_custom_thread "THREADS\AIM_CAR_HOOK.CS" {SEND HANDLER AS > 0@} 
    0AB3: 100 > 0@
    //0AB1: call_scm_func @startNewThread 1 labelName @AIM_CAR_HOOK                                                    
end



